<template>
  <el-dialog v-model="show" :width="props.width" class="rounded-[10px]" :destroy-on-close="true">
    <template #header>
      <div class="font-semibold">站点库</div>
    </template>
    <cloud v-bind="$attrs" @confirm="confirm"></cloud>
  </el-dialog>
</template>

<script setup lang="ts" name="UploadCool">
import Cloud from "./Cloud/index.vue";
import { ref } from "vue";

interface DiaProps {
  width?: string | number;
}

const props = withDefaults(defineProps<DiaProps>(), {
  width: "1200px"
});

const show = ref(false);

const change = () => {
  show.value = true;
};

// confirm
const confirm = (val: any) => {
  console.log("回调", val);
  show.value = false;
};

defineExpose({ change });
</script>

<style></style>
